package dialogs
{
	import SEApp.dialogs.se_dialog;
	
	import UIFree.controls.uif_hscrollArea;
	import UIFree.controls.uif_label;
	import UIFree.uif_component;
	
	import components.pj_hscrollArea;
	
	import flash.geom.Rectangle;

	public class pi_listWindow extends se_dialog {
		protected var _content: uif_label;
		protected var _area: uif_hscrollArea; 
		
		public function pi_listWindow(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, areaStyle: String = 'tab') {
			super(parent, ax, ay, awidth, aheight);
			
			var inner: Rectangle = getInner();
			_content = new uif_label(this, inner.x, inner.y, inner.width, 80, 'description');
			_area = new pj_hscrollArea(this, inner.x, inner.y + 90, inner.width, areaHeight, areaStyle, 30);
			
		}
		
		protected function get areaHeight(): int {
			return getInner().height - 90;
		}
		
		public function get area(): uif_hscrollArea {
			return _area;
		}
		
		public function get description(): String {
			return _content.text;
		}
		
		public function set description(a_desc: String): void {
			_content.text = a_desc;
		}
		
	}
}